<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title> Sistema Financeiro </title>
	<h:outputText value="#{usuarioMBean.loginUsuario}"/>
	<a href="/Financeiro/j_spring_security_logout"> Sair </a>
</h:head>

<h:body >
	<h:messages />
	<div align="left">
		<h1>Listagem de Tipos de Conta</h1>
		
		<h:form id="tipoContaForm">
				<h:commandButton action="#{tipoContaMBean.menu}" value="Menu" />
				<h:commandButton action="#{tipoContaMBean.novo}" value="Novo Tipo de Conta" />
				<h:dataTable value="#{ tipoContaMBean.listagem }" var="item" id="tabela"> 

					<h:column>
						<f:facet name="header"><h:outputText value="Descri&#195;&#167;&#195;&#163;o" /></f:facet>
						<h:outputText value="#{ item.descricao }"/>
					</h:column>
				
					<h:column>
						<h:commandLink action="#{tipoContaMBean.alterar}" value="Alterar" />
					</h:column>
				
					<h:column>
						<h:commandLink action="#{tipoContaMBean.remover}" value="Remover" onclick="return confirm('Deseja realmente remover esse registro?')" />
					</h:column>
				</h:dataTable>
		</h:form>

	</div>
</h:body>
</html>